﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace HexTileBoard
{
    public class SettlingParticleSystem : ParticleSystem
    {
        public SettlingParticleSystem(Game game, ContentManager content)
            : base(game, content)
        { }


        protected override void InitializeSettings(ParticleSettings settings)
        {
            settings.TextureName = "Textures/smoke";

            settings.MaxParticles = 1000;

            settings.Duration = TimeSpan.FromSeconds(5);

            settings.DurationRandomness = 1.5f;

            settings.EmitterVelocitySensitivity = 0.1f;

            settings.MinHorizontalVelocity = -15;
            settings.MaxHorizontalVelocity = 30;

            settings.MinVerticalVelocity = 2;
            settings.MaxVerticalVelocity = 6;

            settings.MinColor = new Color(64, 96, 128, 255);
            settings.MaxColor = new Color(255, 255, 255, 128);
            //settings.MinColor = new Color(255, 0, 0, 255);
            //settings.MaxColor = new Color(0, 0, 0, 128);

            settings.MinRotateSpeed = -4;
            settings.MaxRotateSpeed = 4;

            settings.MinStartSize = 5;
            settings.MaxStartSize = 10;

            settings.MinEndSize = 30;
            settings.MaxEndSize = 60;

            settings.EndVelocity = .2f;
        }
    }
}
